/**
 * 课程分类 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-07-04 16:55:11
 * @Copyright  AKITA
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const docmentApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/docment/queryPage', param);
  },


  /**
   * 分页查询  @author  AKITA
   */
  queryMyPage: (param) => {
    return postRequest('/docment/queryMyPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/docment/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/docment/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/docment/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/docment/batchDelete', idList);
  },

  info: (id) => {
    return getRequest(`/docment/info/${id}`);
  },
};
export const docmentaApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/docmenta/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/docmenta/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/docmenta/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/docmenta/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/docmenta/batchDelete', idList);
  },

  print: (param) => {
    return postRequest('/docmenta/print', param);
  },

  printNoRole: (param) => {
    return postRequest('/docmenta/printNoRole', param);
  },

  selectPrint: (param) => {
    return postRequest('/docmenta/selectPrint', param);
  },

  printList: () => {
    return getRequest('/docmenta/printlist');
  },
};
export const docmentbApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/docmentb/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/docmentb/add', param);
  },

  batchAdd: (param) => {
    return postRequest('/docmentb/batchAdd', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/docmentb/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/docmentb/delete?docEntry=${id.docEntry}&lineNum=${id.lineNum}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/docmentb/batchDelete', idList);
  },

  deleteList: (param) => {
    return postRequest('/docmentb/deleteList', param);
  },
};
export const docmentaaApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/docmentaa/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/docmentaa/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/docmentaa/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/docmentaa/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/docmentaa/batchDelete', idList);
  },
};
export const docmentabApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/docmentab/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/docmentab/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/docmentab/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/docmentab/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/docmentab/batchDelete', idList);
  },
};
